package MoudleTest;

import java.util.Arrays;

/**
 * Created by xu on 2015/8/20.
 */
public class DemoTest {


    private String name = "11111";
    private int age = 120;
    private String sex = "meal";
    private String[] parent = new String[]{"papa","mama","sister","brother"};

    @Override
    public String toString() {
        return "DemoTest{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", sex='" + sex + '\'' +
                ", parent=" + Arrays.toString(parent) +
                '}';
    }


    public void setAge(int age) {
        this.age = age;
    }

    public static void main(String[] args) {
        DemoTest text = new DemoTest();
        text.setAge(20);
        System.out.println(text
                .toString());
    }

}
